package hxy.dragon.ktor.service

import hxy.dragon.ktor.model.GroupModel
import hxy.dragon.ktor.repository.GroupRepository

/**
 * @description
 * @author HOX4SGH
 * @date 2024/10/10
 */
class GroupService(private val userRepository: GroupRepository) {

	fun getDefaultUser(): GroupModel =
		userRepository.findUser("eric") ?: error("Can't find default user")
}